GtkStyle: set junction details in spinbutton buttons.
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 3 Aug 2010 18:37:53 +0000 (20:37 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:37:32 +0000 (15:37 +0100)
gtk/gtkstyle.c

index ef6fe3031e359466438134bb7072cd400ce6e79e..2bcf1af5bf54e61c0d4efbd124bff7d0f3acf393 100644 (file)
@@ -1778,11 +1778,17 @@ transform_detail_string (const gchar     *detail,
     }
   else if (strcmp (detail, "spinbutton") == 0)
     gtk_style_context_set_class (context, "spinbutton");
-  else if (strcmp (detail, "spinbutton_up") == 0 ||
-           strcmp (detail, "spinbutton_down") == 0)
+  else if (strcmp (detail, "spinbutton_up") == 0)
     {
       gtk_style_context_set_class (context, "spinbutton");
       gtk_style_context_set_class (context, "button");
+      gtk_style_context_set_junction_sides (context, GTK_JUNCTION_BOTTOM);
+    }
+  else if (strcmp (detail, "spinbutton_down") == 0)
+    {
+      gtk_style_context_set_class (context, "spinbutton");
+      gtk_style_context_set_class (context, "button");
+      gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP);
     }
   else if (g_str_has_prefix (detail, "cell_"))
     {